package com.example.user.myhjjf_app.model;

import java.util.List;

/**
 * Created by User on 2017/8/17.
 */

public class Model_Area {

    /**
     * value : {"item":{"name":"安龙县","id":"4028838656b6a33e0156b6cb7f37000c","type":0,"level":2,"color":null,"details":null,"boundary":null,"lat":25.104879,"lng":105.449274},"array":[{"name":"测试片区A","id":"4028838656b6a33e0156b728e783001d","type":0,"level":2,"color":"#0000FF","details":null,"boundary":[{"lng":105.450769,"lat":25.104638},{"lng":105.44701,"lat":25.110344},{"lng":105.436374,"lat":25.115579},{"lng":105.414096,"lat":25.10825},{"lng":105.410934,"lat":25.0949},{"lng":105.421858,"lat":25.089664},{"lng":105.433787,"lat":25.091627}],"lat":25.094638,"lng":105.430769},{"name":"测试片区B","id":"4028838656ef53ed0156ef7b6640001b","type":0,"level":2,"color":"#FF0000","details":null,"boundary":[{"lng":105.480355,"lat":25.084167},{"lng":105.471732,"lat":25.094245},{"lng":105.464186,"lat":25.094638},{"lng":105.453406,"lat":25.08901},{"lng":105.443489,"lat":25.084952},{"lng":105.449238,"lat":25.073432},{"lng":105.457215,"lat":25.066952},{"lng":105.472953,"lat":25.073759}],"lat":25.076574,"lng":105.46512},{"name":"综合业务区一a","id":"402883b9593ee42701593f8213590043","type":0,"level":2,"color":"#D2691E","details":null,"boundary":[{"lng":105.513364,"lat":25.100766},{"lng":105.488427,"lat":25.11863},{"lng":105.47542,"lat":25.110451},{"lng":105.476426,"lat":25.100962},{"lng":105.487278,"lat":25.093174},{"lng":105.49662,"lat":25.089313},{"lng":105.505603,"lat":25.09252}],"lat":25.104365,"lng":105.484403},{"name":"综合业务区二a","id":"402883b95939b53701593a0faf5a0003","type":0,"level":2,"color":"#008000","details":null,"boundary":[{"lng":105.48027,"lat":25.118106},{"lng":105.49335,"lat":25.126743},{"lng":105.48875,"lat":25.128967},{"lng":105.484295,"lat":25.126874},{"lng":105.476102,"lat":25.130014},{"lng":105.467478,"lat":25.138519},{"lng":105.459142,"lat":25.13407},{"lng":105.461873,"lat":25.125958},{"lng":105.469491,"lat":25.12177},{"lng":105.464029,"lat":25.115358},{"lng":105.468413,"lat":25.111563},{"lng":105.469203,"lat":25.112348},{"lng":105.470353,"lat":25.113133},{"lng":105.472653,"lat":25.113657}],"lat":25.124649,"lng":105.470353}],"zoom":13}
     * exception : null
     * success : true
     */

    private ValueBean value;
    private Object exception;
    private boolean success;

    public ValueBean getValue() {
        return value;
    }

    public void setValue(ValueBean value) {
        this.value = value;
    }

    public Object getException() {
        return exception;
    }

    public void setException(Object exception) {
        this.exception = exception;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    @Override
    public String toString() {
        return "Model_Area{" +
                "value=" + value +
                ", exception=" + exception +
                ", success=" + success +
                '}';
    }

    public static class ValueBean {
        /**
         * item : {"name":"安龙县","id":"4028838656b6a33e0156b6cb7f37000c","type":0,"level":2,"color":null,"details":null,"boundary":null,"lat":25.104879,"lng":105.449274}
         * array : [{"name":"测试片区A","id":"4028838656b6a33e0156b728e783001d","type":0,"level":2,"color":"#0000FF","details":null,"boundary":[{"lng":105.450769,"lat":25.104638},{"lng":105.44701,"lat":25.110344},{"lng":105.436374,"lat":25.115579},{"lng":105.414096,"lat":25.10825},{"lng":105.410934,"lat":25.0949},{"lng":105.421858,"lat":25.089664},{"lng":105.433787,"lat":25.091627}],"lat":25.094638,"lng":105.430769},{"name":"测试片区B","id":"4028838656ef53ed0156ef7b6640001b","type":0,"level":2,"color":"#FF0000","details":null,"boundary":[{"lng":105.480355,"lat":25.084167},{"lng":105.471732,"lat":25.094245},{"lng":105.464186,"lat":25.094638},{"lng":105.453406,"lat":25.08901},{"lng":105.443489,"lat":25.084952},{"lng":105.449238,"lat":25.073432},{"lng":105.457215,"lat":25.066952},{"lng":105.472953,"lat":25.073759}],"lat":25.076574,"lng":105.46512},{"name":"综合业务区一a","id":"402883b9593ee42701593f8213590043","type":0,"level":2,"color":"#D2691E","details":null,"boundary":[{"lng":105.513364,"lat":25.100766},{"lng":105.488427,"lat":25.11863},{"lng":105.47542,"lat":25.110451},{"lng":105.476426,"lat":25.100962},{"lng":105.487278,"lat":25.093174},{"lng":105.49662,"lat":25.089313},{"lng":105.505603,"lat":25.09252}],"lat":25.104365,"lng":105.484403},{"name":"综合业务区二a","id":"402883b95939b53701593a0faf5a0003","type":0,"level":2,"color":"#008000","details":null,"boundary":[{"lng":105.48027,"lat":25.118106},{"lng":105.49335,"lat":25.126743},{"lng":105.48875,"lat":25.128967},{"lng":105.484295,"lat":25.126874},{"lng":105.476102,"lat":25.130014},{"lng":105.467478,"lat":25.138519},{"lng":105.459142,"lat":25.13407},{"lng":105.461873,"lat":25.125958},{"lng":105.469491,"lat":25.12177},{"lng":105.464029,"lat":25.115358},{"lng":105.468413,"lat":25.111563},{"lng":105.469203,"lat":25.112348},{"lng":105.470353,"lat":25.113133},{"lng":105.472653,"lat":25.113657}],"lat":25.124649,"lng":105.470353}]
         * zoom : 13
         */

        private ItemBean item;
        private int zoom;
        private List<ArrayBean> array;

        public ItemBean getItem() {
            return item;
        }

        public void setItem(ItemBean item) {
            this.item = item;
        }

        public int getZoom() {
            return zoom;
        }

        public void setZoom(int zoom) {
            this.zoom = zoom;
        }

        public List<ArrayBean> getArray() {
            return array;
        }

        public void setArray(List<ArrayBean> array) {
            this.array = array;
        }

        @Override
        public String toString() {
            return "ValueBean{" +
                    "item=" + item +
                    ", zoom=" + zoom +
                    ", array=" + array +
                    '}';
        }

        public static class ItemBean {
            /**
             * name : 安龙县
             * id : 4028838656b6a33e0156b6cb7f37000c
             * type : 0
             * level : 2
             * color : null
             * details : null
             * boundary : null
             * lat : 25.104879
             * lng : 105.449274
             */

            private String name;
            private String id;
            private int type;
            private int level;
            private Object color;
            private Object details;
            private Object boundary;
            private double lat;
            private double lng;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public Object getColor() {
                return color;
            }

            public void setColor(Object color) {
                this.color = color;
            }

            public Object getDetails() {
                return details;
            }

            public void setDetails(Object details) {
                this.details = details;
            }

            public Object getBoundary() {
                return boundary;
            }

            public void setBoundary(Object boundary) {
                this.boundary = boundary;
            }

            public double getLat() {
                return lat;
            }

            public void setLat(double lat) {
                this.lat = lat;
            }

            public double getLng() {
                return lng;
            }

            public void setLng(double lng) {
                this.lng = lng;
            }

            @Override
            public String toString() {
                return "ItemBean{" +
                        "name='" + name + '\'' +
                        ", id='" + id + '\'' +
                        ", type=" + type +
                        ", level=" + level +
                        ", color=" + color +
                        ", details=" + details +
                        ", boundary=" + boundary +
                        ", lat=" + lat +
                        ", lng=" + lng +
                        '}';
            }
        }

        public static class ArrayBean {
            /**
             * name : 测试片区A
             * id : 4028838656b6a33e0156b728e783001d
             * type : 0
             * level : 2
             * color : #0000FF
             * details : null
             * boundary : [{"lng":105.450769,"lat":25.104638},{"lng":105.44701,"lat":25.110344},{"lng":105.436374,"lat":25.115579},{"lng":105.414096,"lat":25.10825},{"lng":105.410934,"lat":25.0949},{"lng":105.421858,"lat":25.089664},{"lng":105.433787,"lat":25.091627}]
             * lat : 25.094638
             * lng : 105.430769
             */

            private String name;
            private String id;
            private int type;
            private int level;
            private String color;
            private Object details;
            private double lat;
            private double lng;
            private List<BoundaryBean> boundary;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public String getColor() {
                return color;
            }

            public void setColor(String color) {
                this.color = color;
            }

            public Object getDetails() {
                return details;
            }

            public void setDetails(Object details) {
                this.details = details;
            }

            public double getLat() {
                return lat;
            }

            public void setLat(double lat) {
                this.lat = lat;
            }

            public double getLng() {
                return lng;
            }

            public void setLng(double lng) {
                this.lng = lng;
            }

            public List<BoundaryBean> getBoundary() {
                return boundary;
            }

            public void setBoundary(List<BoundaryBean> boundary) {
                this.boundary = boundary;
            }

            @Override
            public String toString() {
                return "ArrayBean{" +
                        "name='" + name + '\'' +
                        ", id='" + id + '\'' +
                        ", type=" + type +
                        ", level=" + level +
                        ", color='" + color + '\'' +
                        ", details=" + details +
                        ", lat=" + lat +
                        ", lng=" + lng +
                        ", boundary=" + boundary +
                        '}';
            }

            public static class BoundaryBean {
                /**
                 * lng : 105.450769
                 * lat : 25.104638
                 */

                private double lng;
                private double lat;

                public double getLng() {
                    return lng;
                }

                public void setLng(double lng) {
                    this.lng = lng;
                }

                public double getLat() {
                    return lat;
                }

                public void setLat(double lat) {
                    this.lat = lat;
                }

                @Override
                public String toString() {
                    return "BoundaryBean{" +
                            "lng=" + lng +
                            ", lat=" + lat +
                            '}';
                }
            }
        }
    }
}
